package com.baor.controller;


import com.baor.domain.UserTagVo;
import com.baor.service.VipTagService;
import com.baor.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/viptag")
public class VipTagController {

    @Autowired
    private VipTagService vipTagService;

    @RequestMapping("/addVipTag")
    public AjaxResult<?> addVipTag(@RequestBody UserTagVo userTagVo) {
        return vipTagService.addVipTag(userTagVo);
    }

    @RequestMapping("/tagInfo")
    public AjaxResult<?> tagInfo(@RequestBody UserTagVo userTagVo) {
        return vipTagService.tagInfo(userTagVo);
    }

    @RequestMapping("/userTagList")
    public AjaxResult<?> userTagList(@RequestBody Map<String, Object> Params) {
        return vipTagService.vipTagList(Params);
    }

    @RequestMapping("/deleteTag")
    public AjaxResult<?> deleteTag(@RequestBody UserTagVo userTagVo) {
        return vipTagService.deleteVipTag(userTagVo);
    }

    @RequestMapping("/updateTag")
    public AjaxResult<?> updateTag(@RequestBody UserTagVo userTagVo) {
        return vipTagService.updateVipTag(userTagVo);
    }
}
